package service;

import dao.NewsDao;
import entity.News;


import java.util.List;

public class NewsServiceImpl implements NewsService {

    private NewsDao newsDao;

    @Override
    public List<News> getNewList() {
      return newsDao.getNewList();
    }

    public NewsDao getNewsDao() {
        return newsDao;
    }

    public void setNewsDao(NewsDao newsDao) {
        this.newsDao = newsDao;
    }
}
